package com.core.common.gen;

import lombok.Data;

/**
 * @program: kuntail
 * @description: 分页查询实体  模式一 起始索引 + 获取数量
 *                              模式二 起始页 + 每页数量
 * @author: honglei
 * @create: 2022-03-08 13:54
 */
@Data
public class PageQuery<T>{

    private int pageIndex;
    private int pageSize = 10;
    private int page;
    private int limit = 10;

    public void setPage(int page) {
        this.page = page;
        this.pageIndex=page;
    }

    public void setLimit(int limit) {
        this.limit = limit;
        this.pageSize=limit;
    }

    T  queryBean;




}
